import Vue from 'vue'
import '@/assets/style/iview-custom'

import {
    Row,
    Col,
    Card,
    Menu,
    MenuItem,
    Submenu,
    Icon,
    Badge,
    // Switch,
    Breadcrumb,
    BreadcrumbItem,
    Page,
    Table,
    DropdownMenu,
    DropdownItem,
    Poptip,
    Tooltip,
    Dropdown,
    Form,
    FormItem,
    Button,
    Input,
    Select,
    Option,
    Avatar,
    Collapse,
    Panel,
    Steps,
    Step,
    Cascader,
    RadioGroup,
    Radio,
    CheckboxGroup,
    Checkbox,
    Upload,
    DatePicker,
    Message,
    Tag,
    Spin,
    Modal,
    Slider,
    ColorPicker,
    Alert
} from 'iview'

Vue.component('IRow', Row)
Vue.component('ICol', Col)
Vue.component('ICard', Card)

Vue.component('ITable', Table)
Vue.component('IPage', Page)

Vue.component('IBadge', Badge)
Vue.component('IIcon', Icon)
Vue.component('IPoptip', Poptip)
Vue.component('ITooltip', Tooltip)
Vue.component('IAvatar', Avatar)
Vue.component('ITag', Tag)
Vue.component('ISpin', Spin)
// Vue.component('ISwitch', Switch)

Vue.component('IMenu', Menu)
Vue.component('ISubmenu', Submenu)
Vue.component('IMenuItem', MenuItem)
Vue.component('IDropdownMenu', DropdownMenu)
Vue.component('IDropdownItem', DropdownItem)

Vue.component('IBreadcrumb', Breadcrumb)
Vue.component('IBreadcrumbItem', BreadcrumbItem)

Vue.component('IDropdown', Dropdown)

Vue.component('IForm', Form)
Vue.component('IFormItem', FormItem)
Vue.component('IButton', Button)
Vue.component('IInput', Input)
Vue.component('ISelect', Select)
Vue.component('IOption', Option)

Vue.component('ICollapse', Collapse)
Vue.component('IPanel', Panel)

Vue.component('ISteps', Steps)
Vue.component('IStep', Step)

Vue.component('ICascader', Cascader)

Vue.component('IRadioGroup', RadioGroup)
Vue.component('IRadio', Radio)

Vue.component('ICheckboxGroup', CheckboxGroup)
Vue.component('ICheckbox', Checkbox)

Vue.component('IUpload', Upload)

Vue.component('IDatePicker', DatePicker)

Vue.component('IModal', Modal)
Vue.component('ISlider', Slider)

Vue.component('IColorPicker', ColorPicker)

Vue.component('IAlert', Alert)

Vue.prototype.$Message = Message
